/*
 *    Copyright (c) 2018-2025, boss All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the boss developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: boss
 */

package com.hopes.bizz.close.flow.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.hopes.bizz.close.common.constant.enums.ParkCloseSysDictEnum;
import com.hopes.boss.admin.api.resolver.DictResolver;
import com.hopes.boss.admin.api.resolver.enums.AdminDictEnum;
import com.hopes.boss.common.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;

/**
 * 企业危化品物资库
 *
 * @author pig
 * @date 2023-11-01 17:32:54
 */
@Data
@TableName(value = "closed_hazard_goods", excludeProperty = "tenantId")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "企业危化品物资库")
public class ClosedHazardGoodsEntity extends BaseEntity {

    private static final long serialVersionUID = 1L;


	/**
	* 标识
	*/
    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description="标识")
    private Long id;

	/**
	* 危险品类型
	*/
    @Schema(description="危险品类型")
    private Integer hazardType;

	/**
	* 企业ID
	*/
    @Schema(description="企业ID")
    private Long orgId;

	/**
	* 别名
	*/
    @Schema(description="别名")
    private String otherName;

	/**
	* 名称
	*/
    @Schema(description="名称")
    private String name;

	/**
	* MSDSid
	*/
    @Schema(description="MSDSid")
    private Long msdsId;

	/**
	* CAS
	*/
    @Schema(description="CAS")
    private String cas;

	/**
	* 备注
	*/
    @Schema(description="备注")
    private String remarks;


    public String getOrgIdStr() {
    	return DictResolver.getItemLabelByValue(AdminDictEnum.sys_company, this.getOrgId());
	}

	public String getHazardTypeStr() {
    	return DictResolver.getItemLabelByValue(ParkCloseSysDictEnum.close_flow_bill_hazard_type, this.getHazardType());
	}


}
